package com.zyg.dao;

import com.zyg.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll(@Param("user") User user, @Param("offset") int offset, @Param("pageSize") int pageSize);

    int addUser(User user);

    int deleteUser(int id);

    User findUserById(int id);

    int updateUser(User user);

    int count(User user);

    int login(User user);

    User findUserByUserName(String username);
}
